<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath}" />

<!DOCTYPE HTML>
<html>
<head>
<title><c:if test="${empty user}">用户增加</c:if> <c:if
		test="${!empty user}">用户修改</c:if></title>
</head>

<body>
	<center>
		<h1>
			<c:if test="${empty user}">用户增加</c:if>
			<c:if test="${!empty user}">用户修改</c:if>
		</h1>
		<hr>
		<form action="${path}/action/user/save" method="post">
			<input type="hidden" name="id" value="${user.id}">
			<table>
				<tr>
					<td>账号：</td>
					<td><input type="text" name="uname" value="${user.uname }"></td>
				</tr>
				<tr>
					<td>密码：</td>
					<td><input type="password" name="passwd"
						value="${user.passwd }"></td>
				</tr>
				<tr>
					<td>性别：</td>
					<td>男<input type="radio" name="sex" value="1"
						<c:if test="${user.sex==1}">checked</c:if>>&nbsp;&nbsp; 女<input
						type="radio" name="sex" value="0"
						<c:if test="${user.sex==0}">checked</c:if>>
					</td>
				</tr>
				<tr align="center">
					<td colspan="2"><input type="submit" value="确定"> <input
						type="reset" value="取消"></td>
				</tr>
			</table>
		</form>
	</center>
</body>
</html>
